export enum Status {
  '禁用' = 0,
  '启用' = 1
}

export interface Person {
  name: string
  age: number
  hasJob?: boolean
}

const ming: Person = {
  name: '小明',
  age: 123
}

interface DataItem<T> {
  record: T[]
  current: number
  pageSize: number
}

interface List<T> {
  code: number
  message: string
  data: DataItem<T>
}

const res: List<Person> = {}

res.data.record[0].name
